home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 117 / PC Guia 117.iso / Software / Utils / Software2 / Product11 / Setup.exe / MT-3.16-full-en_US / schemas / sqlite.dump < prev   
Text File  |  2004-08-02  |  11KB  |  302 lines

  1. create table mt_author (
  2.     author_id integer not null primary key,
  3.     author_name varchar(50) not null,
  4.     author_type smallint not null,
  5.     author_nickname varchar(50),
  6.     author_password varchar(60) not null,
  7.     author_email varchar(75) not null,
  8.     author_url varchar(255),
  9.     author_can_create_blog boolean,
  10.     author_can_view_log boolean,
  11.     author_hint varchar(75),
  12.     author_created_by integer,
  13.     author_public_key text,
  14.     author_preferred_language varchar(50),
  15.     author_remote_auth_username varchar(50),
  16.     author_remote_auth_token varchar(50),
  17.     unique (author_name, author_type)
  18. );
  19. create index mt_author_email on mt_author (author_email);
  20.  
  21. create table mt_blog (
  22.     blog_id integer not null primary key,
  23.     blog_name varchar(255) not null,
  24.     blog_description text,
  25.     blog_site_path varchar(255),
  26.     blog_site_url varchar(255),
  27.     blog_archive_path varchar(255),
  28.     blog_archive_url varchar(255),
  29.     blog_archive_type varchar(255),
  30.     blog_archive_type_preferred varchar(25),
  31.     blog_days_on_index smallint,
  32.     blog_language varchar(5),
  33.     blog_file_extension varchar(10),
  34.     blog_email_new_comments boolean,
  35.     blog_email_new_pings boolean,
  36.     blog_allow_comment_html boolean,
  37.     blog_autolink_urls boolean,
  38.     blog_sort_order_posts varchar(8),
  39.     blog_sort_order_comments varchar(8),
  40.     blog_allow_comments_default boolean,
  41.     blog_allow_pings_default boolean,
  42.     blog_server_offset float,
  43.     blog_convert_paras varchar(30),
  44.     blog_convert_paras_comments varchar(30),
  45.     blog_status_default smallint,
  46.     blog_allow_anon_comments boolean,
  47.     blog_allow_unreg_comments smallint,
  48.     blog_allow_reg_comments smallint,
  49.     blog_moderate_unreg_comments smallint,
  50.     blog_require_comment_emails smallint,
  51.     blog_manual_approve_commenters smallint,
  52.     blog_words_in_excerpt smallint,
  53.     blog_ping_weblogs boolean,
  54.     blog_ping_blogs boolean,
  55.     blog_ping_technorati boolean,
  56.     blog_ping_others text,
  57.     blog_mt_update_key varchar(30),
  58.     blog_autodiscover_links boolean,
  59.     blog_welcome_msg text,
  60.     blog_old_style_archive_links smallint,
  61.     blog_archive_tmpl_monthly varchar(255),
  62.     blog_archive_tmpl_weekly varchar(255),
  63.     blog_archive_tmpl_daily varchar(255),
  64.     blog_archive_tmpl_individual varchar(255),
  65.     blog_archive_tmpl_category varchar(255),
  66.     blog_google_api_key varchar(32),
  67.     blog_sanitize_spec varchar(255),
  68.     blog_cc_license varchar(255),
  69.     blog_is_dynamic boolean,
  70.     blog_remote_auth_token varchar(50),
  71.     blog_children_modified_on datetime,
  72.     blog_custom_dynamic_templates varchar(25)
  73. );
  74. create index mt_blog_name on mt_blog (blog_name);
  75.  
  76. create table mt_category (
  77.     category_id integer not null primary key,
  78.     category_blog_id integer not null,
  79.     category_allow_pings boolean,
  80.     category_label varchar(100) not null,
  81.     category_description text,
  82.     category_author_id integer,
  83.     category_ping_urls text,
  84.     category_parent integer not null default 0,
  85.     unique (category_blog_id, category_label)
  86. );
  87.  
  88. create table mt_comment (
  89.     comment_id integer not null primary key,
  90.     comment_blog_id integer not null,
  91.     comment_entry_id integer not null,
  92.     comment_ip varchar(16),
  93.     comment_author varchar(100),
  94.     comment_email varchar(75),
  95.     comment_url varchar(255),
  96.     comment_commenter_id integer,
  97.     comment_visible smallint,
  98.     comment_text text,
  99.     comment_created_on timestamp not null,
  100.     comment_modified_on timestamp not null,
  101.     comment_created_by integer,
  102.     comment_modified_by integer
  103. );
  104. create index mt_comment_created_on on mt_comment (comment_created_on);
  105. create index mt_comment_entry_id on mt_comment (comment_entry_id);
  106. create index mt_comment_blog_id on mt_comment (comment_blog_id);
  107.  
  108. create table mt_entry (
  109.     entry_id integer not null primary key,
  110.     entry_blog_id integer not null,
  111.     entry_status smallint not null,
  112.     entry_author_id integer not null,
  113.     entry_allow_comments boolean,
  114.     entry_allow_pings boolean,
  115.     entry_convert_breaks varchar(30),
  116.     entry_category_id integer,
  117.     entry_title varchar(255),
  118.     entry_excerpt text,
  119.     entry_text text,
  120.     entry_text_more text,
  121.     entry_to_ping_urls text,
  122.     entry_pinged_urls text,
  123.     entry_keywords text,
  124.     entry_tangent_cache text,
  125.     entry_created_on timestamp not null,
  126.     entry_modified_on timestamp not null,
  127.     entry_basename varchar(50),
  128.     entry_created_by integer,
  129.     entry_modified_by integer
  130. );
  131. create index mt_entry_blog_id on mt_entry (entry_blog_id);
  132. create index mt_entry_status on mt_entry (entry_status);
  133. create index mt_entry_author_id on mt_entry (entry_author_id);
  134. create index mt_entry_created_on on mt_entry (entry_created_on);
  135. create index mt_entry_basename on mt_entry (entry_basename);
  136.  
  137. create table mt_ipbanlist (
  138.     ipbanlist_id integer not null primary key,
  139.     ipbanlist_blog_id integer not null,
  140.     ipbanlist_ip varchar(15) not null,
  141.     ipbanlist_created_on timestamp not null,
  142.     ipbanlist_modified_on timestamp not null,
  143.     ipbanlist_created_by integer,
  144.     ipbanlist_modified_by integer
  145. );
  146. create index mt_ipbanlist_blog_id on mt_ipbanlist (ipbanlist_blog_id);
  147. create index mt_ipbanlist_ip on mt_ipbanlist (ipbanlist_ip);
  148.  
  149. create table mt_log (
  150.     log_id integer not null primary key,
  151.     log_message varchar(255),
  152.     log_ip varchar(16),
  153.     log_created_on timestamp not null,
  154.     log_modified_on timestamp not null,
  155.     log_created_by integer,
  156.     log_modified_by integer
  157. );
  158. create index mt_log_created_on on mt_log (log_created_on);
  159.  
  160. create table mt_notification (
  161.     notification_id integer not null primary key,
  162.     notification_blog_id integer not null,
  163.     notification_name varchar(50),
  164.     notification_email varchar(75),
  165.     notification_url varchar(255),
  166.     notification_created_on timestamp not null,
  167.     notification_modified_on timestamp not null,
  168.     notification_created_by integer,
  169.     notification_modified_by integer
  170. );
  171. create index mt_notification_blog_id on mt_notification (notification_blog_id);
  172.  
  173. create table mt_permission (
  174.     permission_id integer not null primary key,
  175.     permission_author_id integer not null,
  176.     permission_blog_id integer not null,
  177.     permission_role_mask smallint,
  178.     permission_entry_prefs varchar(255),
  179.     unique (permission_blog_id, permission_author_id)
  180. );
  181.  
  182. create table mt_placement (
  183.     placement_id integer not null primary key,
  184.     placement_entry_id integer not null,
  185.     placement_blog_id integer not null,
  186.     placement_category_id integer not null,
  187.     placement_is_primary boolean not null
  188. );
  189. create index mt_placement_entry_id on mt_placement (placement_entry_id);
  190. create index mt_placement_category_id on mt_placement (placement_category_id);
  191. create index mt_placement_is_primary on mt_placement (placement_is_primary);
  192.  
  193. create table mt_plugindata (
  194.     plugindata_id integer not null primary key,
  195.     plugindata_plugin varchar(50) not null,
  196.     plugindata_key varchar(255) not null,
  197.     plugindata_data text
  198. );
  199. create index mt_plugindata_plugin on mt_plugindata (plugindata_plugin);
  200. create index mt_plugindata_key on mt_plugindata (plugindata_key);
  201.  
  202. create table mt_template (
  203.     template_id integer not null primary key,
  204.     template_blog_id integer not null,
  205.     template_name varchar(50) not null,
  206.     template_type varchar(25) not null,
  207.     template_outfile varchar(255),
  208.     template_rebuild_me boolean,
  209.     template_text text,
  210.     template_linked_file varchar(255),
  211.     template_linked_file_mtime varchar(10),
  212.     template_linked_file_size integer,
  213.     template_created_on datetime not null,
  214.     template_modified_on timestamp not null,
  215.     template_created_by integer,
  216.     template_modified_by integer,
  217.     template_build_dynamic boolean not null default 0,
  218.     unique (template_blog_id, template_name)
  219. );
  220. create index mt_template_type on mt_template (template_type);
  221.  
  222. create table mt_templatemap (
  223.     templatemap_id integer not null primary key,
  224.     templatemap_blog_id integer not null,
  225.     templatemap_template_id integer not null,
  226.     templatemap_archive_type varchar(25) not null,
  227.     templatemap_file_template varchar(255),
  228.     templatemap_is_preferred boolean not null
  229. );
  230. create index mt_templatemap_blog_id on mt_templatemap (templatemap_blog_id);
  231. create index mt_templatemap_template_id on mt_templatemap (templatemap_template_id);
  232. create index mt_templatemap_archive_type on mt_templatemap (templatemap_archive_type);
  233. create index mt_templatemap_is_preferred on mt_templatemap (templatemap_is_preferred);
  234.  
  235. create table mt_trackback (
  236.     trackback_id integer not null primary key,
  237.     trackback_blog_id integer not null,
  238.     trackback_title varchar(255),
  239.     trackback_description text,
  240.     trackback_rss_file varchar(255),
  241.     trackback_url varchar(255),
  242.     trackback_entry_id integer not null,
  243.     trackback_category_id integer not null,
  244.     trackback_passphrase varchar(30),
  245.     trackback_is_disabled boolean,
  246.     trackback_created_on timestamp not null,
  247.     trackback_modified_on timestamp not null,
  248.     trackback_created_by integer,
  249.     trackback_modified_by integer
  250. );
  251. create index mt_trackback_blog_id on mt_trackback (trackback_blog_id);
  252. create index mt_trackback_entry_id on mt_trackback (trackback_entry_id);
  253. create index mt_trackback_category_id on mt_trackback (trackback_category_id);
  254. create index mt_trackback_created_on on mt_trackback (trackback_created_on);
  255.  
  256. create table mt_tbping (
  257.     tbping_id integer not null primary key,
  258.     tbping_blog_id integer not null,
  259.     tbping_tb_id integer not null,
  260.     tbping_title varchar(255),
  261.     tbping_excerpt text,
  262.     tbping_source_url varchar(255),
  263.     tbping_ip varchar(15) not null,
  264.     tbping_blog_name varchar(255),
  265.     tbping_created_on timestamp not null,
  266.     tbping_modified_on timestamp not null,
  267.     tbping_created_by integer,
  268.     tbping_modified_by integer
  269. );
  270. create index mt_tbping_blog_id on mt_tbping (tbping_blog_id);
  271. create index mt_tbping_tb_id on mt_tbping (tbping_tb_id);
  272. create index mt_tbping_ip on mt_tbping (tbping_ip);
  273. create index mt_tbping_created_on on mt_tbping (tbping_created_on);
  274.  
  275. create table mt_session (
  276.     session_id varchar(80) not null primary key,
  277.     session_data text,
  278.     session_email varchar(255),
  279.     session_name varchar(255),
  280.     session_start integer not null,
  281.     session_kind varchar(2)
  282. );
  283. create index mt_session_start on mt_session (session_start);
  284.  
  285. create table mt_fileinfo (
  286.     fileinfo_id INTEGER PRIMARY KEY,
  287.     fileinfo_blog_id integer not null,
  288.     fileinfo_entry_id integer,
  289.     fileinfo_url varchar(255),
  290.     fileinfo_file_path text,
  291.     fileinfo_template_id integer,
  292.     fileinfo_templatemap_id integer,
  293.     fileinfo_archive_type varchar(255),
  294.     fileinfo_category_id integer,
  295.     fileinfo_startdate varchar(80),
  296.     fileinfo_virtual tinyint
  297. );
  298. create index mt_fileinfo_blog_id on mt_fileinfo (fileinfo_blog_id);
  299. create index mt_fileinfo_entry_id on mt_fileinfo (fileinfo_entry_id);
  300. create index mt_fileinfo_url on mt_fileinfo (fileinfo_url);
  301.  
  302.